import Vue from 'vue'
import Router from 'vue-router'
import company from '@/components/company'
import test from '@/components/test'
import login from '@/components/login'
import register from '@/components/register'
import tabbar from '@/components/tabbar'
import task from '@/components/tabbar/task'
import index from '@/components/index'
import msg from '@/components/tabbar/msg'
import report from '@/components/tabbar/report'
import workSpace from '@/components/tabbar/workSpace'
import user from '@/components/tabbar/user'

import dealShort from '@/components/task/dealShort'
import deal from '@/components/task/deal'
import dealPerson from '@/components/task/dealPerson'


import addOrder from '@/components/task/addOrder'
import orderNum from '@/components/task/orderNum'
import product from '@/components/task/product'
import way from '@/components/task/way'

import searchOrder from '@/components/task/searchOrder'
import orderInput from '@/components/task/orderInput'
import process from '@/components/task/process'
import produceInput from '@/components/task/produceInput'
import dealProduceInput from '@/components/task/dealProduceInput'
import optionsInput from '@/components/task/optionsInput'
import productionReport from '@/components/task/productionReport'
import workstation from '@/components/task/workstation'
import orderBack from '@/components/task/orderBack'
import searchJobOrder from '@/components/task/searchJobOrder'
import jobOrderInput from '@/components/task/jobOrderInput'
import jobInput from '@/components/task/jobInput'
//import jobOptionInput from '@/components/task/jobOptionInput'
import jobOrderAndBooking from '@/components/task/jobOrderAndBooking'
import jobOrderBack from '@/components/task/jobOrderBack'
import taskAbnormal from '@/components/task/abnormal'
import abnormalType from '@/components/task/abnormalType'
import abnormalDealPer from '@/components/task/abnormalDealPer'
import deviceCall from '@/components/task/deviceCall'
import deviceAbnormalType from '@/components/task/deviceAbnormalType'
import shortCall from '@/components/task/shortCall'
import addMatter from '@/components/task/addMatter'
import dealAbnormal from '@/components/task/dealAbnormal'
import abnormalDeal from '@/components/task/abnormalDeal'
import dealDevice from '@/components/task/dealDevice'
import dealDeviceInfo from '@/components/task/dealDeviceInfo'

import lookDealShort from '@/components/task/lookDealShort'
import lookAbnormal from '@/components/task/lookAbnormal'
import lookDeviceAbnormal from '@/components/task/lookDeviceAbnormal'



import modifyCode from '@/components/user/modifyCode'
import modifyPhone from '@/components/user/modifyPhone'
import setServAddress from '@/components/user/setServAddress'
import setCentral from '@/components/user/setCentral'
import helpCenter from '@/components/user/helpCenter'
import showPanel from '@/components/user/showPanel'
import abnormal from '@/components/msg/abnormal'
import lackResource from '@/components/msg/lackResource'
import callEquip from '@/components/msg/callEquip'





import leaveWork from '@/components/task/leaveWork'
import snQuality from '@/components/task/snQuality'
import snSuccessTest from '@/components/task/snSuccessTest'
import snRepair from '@/components/task/snRepair'
import repairCenter from '@/components/task/repairCenter'
import processTest from '@/components/task/processTest'
import productTest from '@/components/task/productTest'
import errorSure from '@/components/task/errorSure'
import editProcessTest from '@/components/task/editProcessTest'
import productTestLast from '@/components/task/productTestLast'
import repairCenterLast from '@/components/task/repairCenterLast'







Vue.use(Router)

export default new Router({
  routes: [
		{
			path:'/',
			name:'index',
			component:index
		},
    {
      path: '/register',
      name: 'register',
      component: register
	},
	{
		path: '/test',
		name: 'test',
		component: test
	  },
	{
		path: '/login',
		name: 'login',
		component: login
	  },
	{
			path:'/company',
			name:'company',
			component:company
		},
		{
			path:'/tabbar',
			name:'tabbar',
			component:tabbar,
			redirect:'/tabbar/task',
			children:[
				{path:'task',name:'task',component:task},
				{path:'msg',name:'msg',component:msg},
				{path:'report',name:'report',component:report},
				{path:'workSpace',name:'workSpace',component:workSpace},
				{path:'user',name:'user',component:user},


				{ path: 'msg/abnormal', name: 'abnormal',component:abnormal},
				{path:'msg/lackResource',name:'lackResource',component:lackResource},
				{ path: 'msg/callEquip', name: 'callEquip',component:callEquip},

				

				{path:'task/dealShort',name:'dealShort',component:dealShort},
				{path:'task/deal',name:'deal',component:deal},
				{path:'task/dealPerson',name:'dealPerson',component:dealPerson},
				{path:'task/addOrder',name:'addOrder',component:addOrder},
				{path:'task/orderNum',name:'orderNum',component:orderNum},
				{path:'task/product',name:"product",component:product},
				{path:'task/way',name:'way',component:way},


				{path:'task/leaveWork',name:'leaveWork',component:leaveWork},
				{path:'task/snQuality',name:'snQuality',component:snQuality},
				{path:'task/snSuccessTest',name:'snSuccessTest',component:snSuccessTest},
				{path:'task/snRepair',name:'snRepair',component:snRepair},
				{path:'task/repairCenter',name:'repairCenter',component:repairCenter},
				{path:'task/processTest',name:'processTest',component:processTest},
				{path:'task/productTest',name:'productTest',component:productTest},
				{path:'task/errorSure',name:'errorSure',component:errorSure},
				{path:'task/editProcessTest',name:'editProcessTest',component:editProcessTest},
				{path:'task/productTestLast',name:'productTestLast',component:productTestLast},
				{path:'task/repairCenterLast',name:'repairCenterLast',component:repairCenterLast},
			

				{path:'task/searchOrder',name:'searchOrder',component:searchOrder},
				{path:'task/orderInput',name:'orderInput',component:orderInput},
				{path:'task/process',name:'process',component:process},
				{path:'task/produceInput',name:'produceInput',component:produceInput},
				{path:'task/dealProduceInput',name:'dealProduceInput',component:dealProduceInput},
				{path:'task/optionsInput',name:'optionsInput',component:optionsInput},
				{path:'task/productionReport',name:'productionReport',component:productionReport},
				{path:'task/orderBack',name:'orderBack',component:orderBack},
				{path:'task/searchJobOrder',name:'searchJobOrder',component:searchJobOrder},
				{path:'task/jobOrderInput',name:'jobOrderInput',component:jobOrderInput},
				{path:'task/jobInput',name:'jobInput',component:jobInput},
				//{path:'task/jobOptionInput',name:'jobOptionInput',component:jobOptionInput},
				{path:'task/jobOrderAndBooking',name:'jobOrderAndBooking',component:jobOrderAndBooking},
				{path:'task/jobOrderBack',name:'jobOrderBack',component:jobOrderBack},
				{path:'task/taskAbnormal',name:'taskAbnormal',component:taskAbnormal},
				{path:'task/abnormalType',name:'abnormalType',component:abnormalType},
				{path:'task/abnormalDealPer',name:'abnormalDealPer',component:abnormalDealPer},
				{path:'task/deviceCall',name:'deviceCall',component:deviceCall},
				{path:'task/deviceAbnormalType',name:'deviceAbnormalType',component:deviceAbnormalType},
				{path:'task/shortCall',name:'shortCall',component:shortCall},
				{path:'task/addMatter',name:'addMatter',component:addMatter},
				{path:'task/dealAbnormal',name:'dealAbnormal',component:dealAbnormal},
				{path:'task/abnormalDeal',name:'abnormalDeal',component:abnormalDeal},
				{path:'task/dealDevice',name:'dealDevice',component:dealDevice},
				{path:'task/dealDeviceInfo',name:'dealDeviceInfo',component:dealDeviceInfo},
				{path:'task/lookDealShort',name:'lookDealShort',component:lookDealShort},
				{path:'task/lookAbnormal',name:'lookAbnormal',component:lookAbnormal},
				{path:'task/lookDeviceAbnormal',name:'lookDeviceAbnormal',component:lookDeviceAbnormal},
				

			]
		},
		{ path: '/modifyCode', name: 'modifyCode', component: modifyCode},
		{ path: '/modifyPhone', name: 'modifyPhone', component: modifyPhone},
		{ path: '/setCentral', name: 'setCentral', component: setCentral},
		{ path: '/setServAddress', name: 'setServAddress', component: setServAddress},
		{ path: '/helpCenter', name: 'helpCenter', component: helpCenter},
		{ path: '/showPanel', name: 'showPanel', component: showPanel},
				
		{path:'/task/workstation',name:'workstation',component:workstation}

  ]
})
